﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SalePartial.Model;
using System.Data;
using System.Data.SqlClient;

namespace SalePartial.IDAL
{
    public interface IXPFavoriteVedor
    {
        int Delete(int FavorID);

        int DeleteByCompanyID(Guid CompanyID);

        int DeleteByVendorID(Guid VendorID);

        int DeleteDynamic(string v_whereCondition);

        int Insert(XPFavoriteVedorInfo info);

        DataSet SelectAll();

        DataSet SelectByCompanyID(Guid CompanyID);

        DataSet SelectByVendorID(Guid VendorID);

        DataSet SelectDynamic(string v_whereCondition, string v_orderByExpression);

        DataSet SelectPaged();

        SqlDataReader SelectReader(int FavorID);

        SqlDataReader SelectReaderByCompanyID(Guid CompanyID);

        SqlDataReader SelectReaderByVendorID(Guid VendorID);

        DataSet SelectSingle(int FavorID);

        int Update(XPFavoriteVedorInfo info);
    }
}
